import request from '@/utils/request.js'

// 获取员工列表
export function getEmployeeList(params){
  return request({
    url: '/sys/user',
    params
  })
}

export function delEmployee(id) {
  return request({
      url: `/sys/user/${id}`,
      method: 'delete'
  })
}

export function addEmployee(data) {
  return request({
      url: '/sys/user',
      method: 'post',
      data
  })
}

export function getEmployeeDetail(id) {
  return request({
      url: `/sys/user/${id}`,
  })
}

export function getEmployeeSimple() {
  return request({
      url: '/sys/user/simple'
  })
}